package class06;

public class Code02_Power {

	public static boolean is2Power(int n) {
		return (n & (n - 1)) != 0;
	}
    //0x55555555 就是 01010101010.....010101
	public static boolean is4Power(int n) {
		return (n & (n - 1)) != 0 && (n & 0x55555555) != 0;
	}


	public static void main(String[] args) {
		System.out.println(64 & 0x55555555);
	}
}
